#pragma once

#include "gameroom.h"

class GameLobbyRoom : public GameRoom
{
public:
	GameLobbyRoom(void);
	virtual ~GameLobbyRoom(void);

	VOID Init( KEYTYPE Key, CODETYPE MapCode, const TCHAR * pszRoomTitle, const TCHAR * pszRoomPWD, const BASE_ROOMINFO * IN pRoomInfo );

	virtual VOID		Update( DWORD dwDeltaTick );
	virtual eZONETYPE	GetZoneType() { return eZONETYPE_LOBBY;	}
	virtual VOID		Ready( Player * pPlayer, CODETYPE FieldCode, WzID AreaID );
	virtual BOOL		Join( Player * pPlayer, CODETYPE FieldCode, WzID AreaID );
	virtual BOOL		CheckMapVersion( CODETYPE FieldCode, DWORD checksum );

	virtual VOID		ChangeMaster(DWORD dwNextMasterUserKey ) { SetMasterUserKey( dwNextMasterUserKey ); }

	__DECL_GAMEZONEPOOL( GameLobbyRoom )
};
